.page-content {
  padding: 16px 16px 100px 16px;
  background-color: #f5f5f5;
  box-sizing: border-box;
}

// 选择区域
.selection-section {
  margin-bottom: 16px;

  .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;

    .section-title {
      font-size: 16px;
      font-weight: 600;
      color: #171717;
    }

    .modify-button {
      display: flex;
      align-items: center;
      font-size: 14px;
      font-weight: 500;
      cursor: pointer;

      .chevron-icon {
        margin-left: 4px;
        font-size: 18px;
        font-weight: 300;
      }
    }
  }

  // 风格信息
  .style-info {
    display: flex;
    align-items: center;
    gap: 16px;

    .style-image {
      width: 96px;
      height: 96px;
      border-radius: 8px;
      flex-shrink: 0;
    }

    .style-details {
      flex: 1;

      .style-name {
        font-size: 16px;
        font-weight: 600;
        color: #171717;
        margin-bottom: 4px;
      }

      .style-description {
        font-size: 14px;
        color: #525252;
        line-height: 1.5;
      }
    }
  }

  // 色彩方案
  .color-scheme {
    .color-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 8px;

      .color-name {
        font-size: 15px;
        font-weight: 600;
        color: #171717;
      }

      .color-price {
        font-size: 14px;
        font-weight: 600;
      }
    }

    .color-description {
      font-size: 14px;
      color: #525252;
      margin-bottom: 12px;
    }

    .color-palette {
      display: flex;
      gap: 8px;

      .color-dot {
        width: 24px;
        height: 24px;
        border-radius: 50%;
        border: 1px solid #e5e7eb;
      }
    }
  }

  // 空间信息
  .space-info {
    display: flex;
    justify-content: space-between;

    .space-item {
      font-size: 14px;
      color: #525252;
    }
  }
}

// 套餐滚动区域
.package-scroll {
  width: 100%;
  white-space: nowrap;
}

// 套餐卡片区域
.package-cards {
  display: flex;
  gap: 16px;
  padding: 4px 0;

  .package-card {
    display: inline-block;
    width: 250px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    flex-shrink: 0;

    &.selected {
      border: 2px solid #22c55e;
      box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
    }

    .package-image {
      width: 100%;
      height: 144px;
    }

    .package-content {
      padding: 16px;

      .package-name {
        font-size: 16px;
        font-weight: 600;
        color: #171717;
        margin-bottom: 4px;
      }

      .package-description {
        font-size: 13px;
        color: #525252;
        line-height: 1.4;
      }
    }
  }
}

// 报价区域
.quotation-section {
  margin-bottom: 16px;

  .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;

    .section-title {
      font-size: 16px;
      font-weight: 600;
      color: #171717;
    }
  }

  .quotation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 12px;

    .header-label {
      font-size: 14px;
      font-weight: 600;
      color: #525252;
    }

    .header-action {
      .modify-button {
        display: flex;
        align-items: center;
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;

        .chevron-icon {
          margin-left: 4px;
          font-size: 18px;
        }
      }
    }
  }

  .quotation-categories {
    .category-item {
      margin-bottom: 16px;

      &:last-child {
        margin-bottom: 0;
      }

      .category-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 8px;

        .category-title-row {
          display: flex;
          align-items: center;
          gap: 8px;

          .category-name {
            font-size: 15px;
            font-weight: 600;
            color: #171717;
          }

          .customize-button {
            display: flex;
            align-items: center;
            padding: 2px 8px;
            border-radius: 4px;
            cursor: pointer;

            .chevron-icon {
              margin-left: 2px;
            }
          }
        }

        .category-total {
          font-size: 15px;
          font-weight: 600;
          color: #171717;
        }
      }

      .category-items {
        padding-left: 16px;

        .item-row {
          display: flex;
          justify-content: space-between;
          padding: 6px 0;

          .item-name {
            font-size: 13px;
            color: #525252;
            flex: 1;
          }

          .item-price {
            font-size: 13px;
            color: #525252;
            margin-left: 16px;
          }
        }
      }
    }
  }

  .quotation-total {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;

    .total-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 8px;

      .total-label {
        font-size: 16px;
        font-weight: 700;
        color: #171717;
      }

      .total-amount {
        font-size: 20px;
        font-weight: 700;
      }
    }

    .total-note {
      font-size: 12px;
      color: #737373;
    }
  }
}

// 底部确认按钮
.bottom-button {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  background: white;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
  z-index: 100;

  .confirm-button {
    width: 100%;
    height: 48px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    border: none;
  }
}

// 模态框样式
.modal-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: white;
  border-radius: 16px 16px 0 0;

  .modal-header {
    position: relative;
    padding: 16px;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;

    .modal-title {
      font-size: 18px;
      font-weight: 700;
      color: #171717;
      text-align: center;
    }

    .close-button {
      position: absolute;
      top: 16px;
      right: 16px;
      width: 32px;
      height: 32px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 20px;
      color: #737373;
      cursor: pointer;
    }
  }

  .modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;

    .modal-tip {
      font-size: 14px;
      color: #525252;
      margin-bottom: 16px;
      padding: 12px;
      background-color: #f9fafb;
      border-radius: 8px;
    }
  }

  .modal-footer {
    padding: 16px;
    border-top: 1px solid #e5e7eb;
    flex-shrink: 0;

    .modal-button {
      width: 100%;
      height: 48px;
      border-radius: 12px;
      font-size: 16px;
      font-weight: 600;
      color: white;
      border: none;
    }
  }
}

// 风格选项
.style-options {
  display: flex;
  flex-direction: column;
  gap: 24px;

  .style-option {
    text-align: center;

    .style-option-image {
      position: relative;
      border-radius: 12px;
      overflow: hidden;
      margin-bottom: 12px;
      transition: transform 0.2s;

      &.selected {
        transform: scale(1.02);
      }

      .style-img {
        width: 100%;
        height: 240px;
        border-radius: 12px;
      }

      .check-icon {
        position: absolute;
        top: 12px;
        right: 12px;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 16px;
        font-weight: bold;
      }
    }

    .style-option-name {
      font-size: 18px;
      font-weight: 700;
      color: #171717;
      margin-bottom: 4px;
    }

    .style-option-description {
      font-size: 14px;
      color: #525252;
    }
  }
}

// 尺寸输入
.size-inputs {
  display: flex;
  flex-direction: column;
  gap: 16px;

  .input-group {
    .input-label {
      font-size: 14px;
      font-weight: 600;
      color: #171717;
      margin-bottom: 8px;
      display: block;
    }

    .size-input {
      width: 100%;
      height: 48px;
      padding: 0 16px;
      border: 1px solid #e5e7eb;
      border-radius: 8px;
      font-size: 15px;
    }
  }
}

// 色彩选项
.color-options {
  display: flex;
  flex-direction: column;
  gap: 12px;

  .color-option {
    padding: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;

    &.selected {
      border-color: #22c55e;
      background-color: rgba(34, 197, 94, 0.08);
    }

    .color-option-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 8px;

      .color-option-name {
        font-size: 15px;
        font-weight: 600;
        color: #171717;
      }

      .color-option-price {
        font-size: 14px;
        font-weight: 600;
      }
    }

    .color-option-description {
      font-size: 14px;
      color: #525252;
      margin-bottom: 12px;
    }

    .color-option-palette {
      display: flex;
      gap: 8px;

      .color-option-dot {
        width: 24px;
        height: 24px;
        border-radius: 50%;
        border: 1px solid #e5e7eb;
      }
    }
  }
}

// 定制列表
.customization-list {
  display: flex;
  flex-direction: column;
  gap: 16px;

  .sub-category-card {
    .sub-category-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 8px;

      .sub-category-name {
        font-size: 15px;
        font-weight: 600;
        color: #171717;
      }

      .toggle-button {
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
      }
    }

    .sub-category-current {
      font-size: 13px;
      color: #737373;
      margin-bottom: 12px;
    }

    .options-scroll {
      width: 100%;
      white-space: nowrap;
      margin-top: 12px;
    }

    .option-cards {
      display: flex;
      gap: 12px;
      padding: 4px 0;

      .option-card {
        display: inline-block;
        width: 180px;
        border: 2px solid transparent;
        border-radius: 12px;
        padding: 8px;
        flex-shrink: 0;
        cursor: pointer;
        transition: all 0.2s;

        .option-image {
          width: 100%;
          height: 120px;
          border-radius: 8px;
          margin-bottom: 8px;
        }

        .option-content {
          .option-name {
            font-size: 14px;
            font-weight: 600;
            color: #171717;
            margin-bottom: 4px;
          }

          .option-brand {
            font-size: 12px;
            color: #737373;
            margin-bottom: 4px;
          }

          .option-description {
            font-size: 12px;
            color: #525252;
            line-height: 1.4;
            margin-bottom: 8px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
          }

          .option-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;

            .option-price {
              font-size: 13px;
              font-weight: 600;
            }

            .option-check {
              font-size: 16px;
              font-weight: bold;
            }
          }
        }
      }
    }
  }
}
